﻿using System;
using FluentNHibernate.Mapping;
using SOLInfo.GEN.Domain.Entities;
using SOLInfo.GEN.Domain.VO;

namespace SOLInfo.GEN.Repository.Mappings
{
    public class MappingBase
    {
        public static Action<ComponentPart<Manutencao>> MapManutencao(string sufix)
        {
            return m =>
            {
                m.Map(c => c.NomeEntidade);
                m.Map(c => c.Data, "Data_" + sufix);
                m.References<Usuario>(c => c.oUsuario);
            };
        }
    }
}
